From 0cce90ea6bf297d8368ec2f4b5b579c53c5e55fe Mon Sep 17 00:00:00 2001 From: Vladimir Petko Date: Thu, 24 Sep 2026 19:52:19 +1200 Subject: [PATCH] disable tests requiring FileStore Bug: https://bugs.openjdk.org/browse/JDK-8166162 Forwarded: not-needed FileStore tests fail in container infrastructure due to JDK-8166162. This patch disables individual test cases requiring FileStore. The patch is not needed upstream as the bug only occurs in specific container configuration. Gbp-Pq: Name test-empty-path.patch --- test/jdk/java/io/File/EmptyPath.java | 3 --- 1 file changed, 3 deletions(-) diff --git a/test/jdk/java/io/File/EmptyPath.java b/test/jdk/java/io/File/EmptyPath.java index 374a69c79..f1a75493a 100644 --- a/test/jdk/java/io/File/EmptyPath.java +++ b/test/jdk/java/io/File/EmptyPath.java @@ -140,7 +140,6 @@ public class EmptyPath { } } - @Test public void getFreeSpace() throws IOException { FileStore fs = Files.getFileStore(f.toPath()); checkSpace(fs.getUnallocatedSpace(), f.getFreeSpace()); @@ -166,13 +165,11 @@ public class EmptyPath { assertEquals(p.toString(), f.getPath()); } - @Test public void getTotalSpace() throws IOException { FileStore fs = Files.getFileStore(f.toPath()); checkSpace(fs.getTotalSpace(), f.getTotalSpace()); } - @Test public void getUsableSpace() throws IOException { FileStore fs = Files.getFileStore(f.toPath()); checkSpace(fs.getUsableSpace(), f.getUsableSpace()); -- 2.39.5